package com.mi.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.mi.entity.Admin;
import com.mi.service.AdminService;
import com.opensymphony.xwork2.ActionSupport;

@Controller
public class AdminAction extends ActionSupport{
     @Resource
     private AdminService service;
     
     private List<Admin> findAllAdmin ;
     
	
	public List<Admin> getFindAllAdmin() {
		return findAllAdmin;
	}


	public void setFindAllAdmin(List<Admin> findAllAdmin) {
		this.findAllAdmin = findAllAdmin;
	}


	public String findAll_Admin(){
		findAllAdmin= service.findAllAdmin();
		
		
		return "find_admin_true";
	}
}
